package com.example.game2048.bean;

/**
 * Position 标准位置
 */
public class Position {
    public Position(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    private int x;
    private int y;

    private Pile pile;
    private Position rightPosition;
    private Position leftPosition;
    private Position topPosition;
    private Position bottomPosition;

    public Position getRightPosition() {
        return rightPosition;
    }

    public void setRightPosition(Position rightPosition) {
        this.rightPosition = rightPosition;
    }

    public Position getLeftPosition() {
        return leftPosition;
    }

    public void setLeftPosition(Position leftPosition) {
        this.leftPosition = leftPosition;
    }

    public Position getTopPosition() {
        return topPosition;
    }

    public void setTopPosition(Position topPosition) {
        this.topPosition = topPosition;
    }

    public Position getBottomPosition() {
        return bottomPosition;
    }

    public void setBottomPosition(Position bottomPosition) {
        this.bottomPosition = bottomPosition;
    }

    public Pile getPile() {
        return pile;
    }

    public void setPile(Pile pile) {
        this.pile = pile;
    }
}
